//
//  LC_webView.m
//  Custom
//
//  Created by LC on 16/10/13.
//  Copyright © 2016年 xiu&yun. All rights reserved.
//

#import "LC_webView.h"

@interface LC_webView ()<UIGestureRecognizerDelegate>

@end

@implementation LC_webView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:nil];
        longPress.delegate = self;
        longPress.minimumPressDuration = 0.4;
        [self addGestureRecognizer:longPress];
        
//        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapview:)];
////        tap.delegate = self;
//        tap.numberOfTouchesRequired = 1;
//        tap.numberOfTapsRequired = 2; // 双击
//        [self addGestureRecognizer:tap];
    }
    return self;
}

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
    return  NO;
}

//- (void)tapview:(UITapGestureRecognizer *)tap
//{
//    return;
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
